<!-- toolbar -->
<div id="toolbar-box">
<div class="t"><div class="t"><div class="t"></div></div></div>
<div class="m">

<div id="toolbar" class="toolbar"><table class="toolbar"><tr>
<?php if(is_array($this->commands)){?>
<?php if(in_array('new',$this->commands)) { ?>
<td><a href="#" onclick="createAction('<?php echo $this->url(
            array('action'=>'create','controller'=> $this->controller,'module'=> $this->module), 'default', true);?>')">
<span style="background-image: url(<?php echo $this->baseURL; ?>/images/t_cmd_new.png);"></span>
<?php echo My_Translate::translate("ADD");?></a></td>
<?php } ?>

<?php if(in_array('edit',$this->commands)) { ?>
<td><a href="#" onclick="updateAction('<?php echo $this->url(
    array('action'=>'create','controller'=> $this->controller,'module'=> $this->module), 'default', true);?>')">
<span style="background-image: url(<?php echo $this->baseURL; ?>/images/t_cmd_edit.png);"></span>
<?php echo My_Translate::translate("EDIT");?></a></td>
<?php } ?>

<?php if(in_array('delete',$this->commands)) { ?>
<td><a href="#" onclick="deleteAction()">
<span style="background-image: url(<?php echo $this->baseURL; ?>/images/t_cmd_delete.png);"></span>
<?php echo My_Translate::translate("DELETE");?></a></td>
<?php } ?>

<?php if(in_array('save',$this->commands)) { ?>
<td><a href="#" onclick="saveAction();">
<span style="background-image: url(<?php echo $this->baseURL; ?>/images/t_cmd_save.png);"></span>
<?php echo My_Translate::translate("SAVE");?></a></td>
<?php } ?>

<?php if(in_array('cancel',$this->commands)) { ?>
<td><a href="#" onclick="cancelAction('<?php echo $this->url(
    array('action'=>'index','controller'=> $this->controller,'module'=> $this->module), 'default', true);?>')">
<span style="background-image: url(<?php echo $this->baseURL; ?>/images/t_cmd_cancel.png);"></span>
<?php echo My_Translate::translate("CANCEL");?></a></td>
<?php } ?>
<?php }?>
</tr></table></div>

<div class="header" style="background-image: url(<?php echo $this->baseURL; ?>/images/<?php echo $this->icon;?>);">
<?php echo $this->escape($this->title);?>
</div>
<div class="clr"></div>

</div>
<div class="b"><div class="b"><div class="b"></div></div></div>
</div>
<!-- end toolbar -->